import DefaultTheme from 'vitepress/theme'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import mUI from 'szhl-elementplus-components'
import 'szhl-elementplus-components/style.css'
import * as Icons from '@element-plus/icons-vue'


export default {
  ...DefaultTheme,
  enhanceApp({app}) {
    app.use(ElementPlus)
    app.use(mUI)
    // 全局注册图标
    for (let i in Icons) {
      const icons = Icons;
      app.component(`ele-${icons[i].name}`, icons[i]);
    }
  }
}